package com.zsm.eblog.service.impl;

import com.zsm.eblog.mapper.ArticleMapper;
import com.zsm.eblog.pojo.Article;
import com.zsm.eblog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author : ZSM
 * Time :  2024/08/17
 */
@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> list(String type) {
        return articleMapper.list(type);
    }

    @Override
    public Article queryById(Integer id) {
        return articleMapper.queryById(id);
    }
}
